package com.dragon.modules.yuegou.entity.act;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 注册会员送礼记录表实体类<br>
 * 对应的表为：act_gift_record<br>
 *
 * @author pbuilder generated
 * @date 2021-05-11 17:09:45
 * @company sgy
 * @version 2.0
 */
@TableName("act_gift_record")
@ApiModel(description = "注册会员送礼记录表")
public class GiftRecordEntity {

	/**  */
	protected String id;

	/** 订单id或者券包id */
	@ApiModelProperty("订单id或者券包id")
	protected String giveId;

	/** 用户id */
	@ApiModelProperty("用户id")
	protected String userId;

	/** 商圈Id */
	@ApiModelProperty("商圈Id")
	protected String busdId;

	/** 物品id */
	@ApiModelProperty("物品id")
	protected String articleId;

	/** 礼物id */
	@ApiModelProperty("礼物id")
	protected String giftId;

	/** 礼物失效时间 */
	@ApiModelProperty("礼物失效时间")
	protected LocalDateTime invalidTime;

	/** 创建人ID */
	@ApiModelProperty("创建人ID")
	protected String createdBy;

	/** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空注册会员送礼记录表实体对象
	 */
	public GiftRecordEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个注册会员送礼记录表实体对象
	 *
	 * @param other 其它对象
	 */
	public GiftRecordEntity(GiftRecordEntity other){
		super();
		this.id = other.id;
		this.giveId = other.giveId;
		this.userId = other.userId;
		this.busdId = other.busdId;
		this.articleId = other.articleId;
		this.giftId = other.giftId;
		this.invalidTime = other.invalidTime;
		this.createdBy = other.createdBy;
		this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 *
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * 设置
	 *
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取订单id或者券包id
	 *
	 * @return giveId 订单id或者券包id
	 */
	public String getGiveId() {
		return giveId;
	}

	/**
	 * 设置订单id或者券包id
	 *
	 * @param giveId 订单id或者券包id
	 */
	public void setGiveId(String giveId) {
		this.giveId = giveId;
	}

	/**
	 * 获取用户id
	 *
	 * @return userId 用户id
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置用户id
	 *
	 * @param userId 用户id
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取商圈Id
	 *
	 * @return busdId 商圈Id
	 */
	public String getBusdId() {
		return busdId;
	}

	/**
	 * 设置商圈Id
	 *
	 * @param busdId 商圈Id
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取物品id
	 *
	 * @return articleId 物品id
	 */
	public String getArticleId() {
		return articleId;
	}

	/**
	 * 设置物品id
	 *
	 * @param articleId 物品id
	 */
	public void setArticleId(String articleId) {
		this.articleId = articleId;
	}

	/**
	 * 获取礼物id
	 *
	 * @return giftId 礼物id
	 */
	public String getGiftId() {
		return giftId;
	}

	/**
	 * 设置礼物id
	 *
	 * @param giftId 礼物id
	 */
	public void setGiftId(String giftId) {
		this.giftId = giftId;
	}

	/**
	 * 获取礼物失效时间
	 *
	 * @return invalidTime 礼物失效时间
	 */
	public LocalDateTime getInvalidTime() {
		return invalidTime;
	}

	/**
	 * 设置礼物失效时间
	 *
	 * @param invalidTime 礼物失效时间
	 */
	public void setInvalidTime(LocalDateTime invalidTime) {
		this.invalidTime = invalidTime;
	}

	/**
	 * 获取创建人ID
	 *
	 * @return createdBy 创建人ID
	 */
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * 设置创建人ID
	 *
	 * @param createdBy 创建人ID
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取创建时间
	 *
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}

	/**
	 * 设置创建时间
	 *
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	public String toString() {
		return new StringBuilder().append("GiftRecordEntity{").
				append("id=").append(id).
				append(",giveId=").append(giveId).
				append(",userId=").append(userId).
				append(",busdId=").append(busdId).
				append(",articleId=").append(articleId).
				append(",giftId=").append(giftId).
				append(",invalidTime=").append(invalidTime).
				append(",createdBy=").append(createdBy).
				append(",createdTime=").append(createdTime).
				append('}').toString();
	}

	/**
	 * 复制对象
	 *
	 * @return 复制后的新实体对象
	 */
	public GiftRecordEntity copy() {
		return new GiftRecordEntity(this);
	}

	/**  */
	public static final String COL_ID = "id";

	/** 订单id或者券包id */
	public static final String COL_GIVE_ID = "give_id";

	/** 用户id */
	public static final String COL_USER_ID = "user_id";

	/** 商圈Id */
	public static final String COL_BUSD_ID = "busd_id";

	/** 物品id */
	public static final String COL_ARTICLE_ID = "article_id";

	/** 礼物id */
	public static final String COL_GIFT_ID = "gift_id";

	/** 礼物失效时间 */
	public static final String COL_INVALID_TIME = "invalid_time";

	/** 创建人ID */
	public static final String COL_CREATED_BY = "created_by";

	/** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
